package com.sms.graduate;


public class HelloWorld {
    public static int[] getConcatenation(int[] nums) {
        int n = nums.length;
        int ans[] = new int[2*n];
        for (int i=0;i<n;i++){
            ans[i] = nums[i];
        }
        for (int j=0;j<n;j++){
            ans[j+n] = nums[j];
        }
        return ans;
    }
    public static void main(String []args) {
        int[] nums = {1,2,1};
        System.out.println(getConcatenation(nums));
    }
}